<?php
class list_m_favorite extends a_base_model_datamapper{
    public function __construct($id=NULL){
        $this->table = "favorite_lists";
        
        parent::__construct($id);
    }

    public function get_items(){
        $id = $this->id;
        $tmp = new item_m_favorite();
        $items = $tmp->where("favorite_list_id",$id)->get_iterated();
        if($items->result_count()>0){
            return $items;
        }else{
            return NULL;
        }
    }
}
?>